var Token = require("Token");

function TokenFactory() {}

TokenFactory.prototype.createToken = function(type, value){
    var token = new Token(type, window.GameEnum.TokenTypeEnum.properties[type].str);
    return token;
}

TokenFactory.prototype.createAdvanceToken = function(){
    return this.createToken(window.GameEnum.TokenTypeEnum.TOKEN_ADVANCE);
}
TokenFactory.prototype.createPickToken = function(){
    return this.createToken(window.GameEnum.TokenTypeEnum.TOKEN_PICK);
}

TokenFactory.prototype.createThorwToken = function(){
    return this.createToken(window.GameEnum.TokenTypeEnum.TOKEN_THROW);
}

TokenFactory.prototype.createTurnLeftToken = function(){
    return this.createToken(window.GameEnum.TokenTypeEnum.TOKEN_TURN_LEFT);
}

TokenFactory.prototype.createTurnRightToken = function(){
    return this.createToken(window.GameEnum.TokenTypeEnum.TOKEN_TURN_RIGHT);
}

TokenFactory.prototype.createLeapToken = function(){
    return this.createToken(window.GameEnum.TokenTypeEnum.TOKEN_LEAP);
}
TokenFactory.prototype.createFuncToken = function(){
    return this.createToken(window.GameEnum.TokenTypeEnum.TOKEN_FUNC);
}


module.exports = TokenFactory; 